"""
    演示了 exception 和 else 的组合
"""

try:
    # result = 10/0
    result = 10/1
    print(result)
except ZeroDivisionError as e:
    print(e)
else:
    # 没有发生异常执行的语句
    print(f"结果是:{result}")

print("end")

try:
    result = 10/0
    print(f"the result is: {result}")
except ZeroDivisionError as e:
    print("除数不能为零.........")



